package com.cal.calonecal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cal.calonecal.common.Response;
import com.cal.calonecal.pojo.entity.Answer;
import com.cal.calonecal.pojo.entity.Paper;

import java.util.List;

/**
 * @author 76004
 * @apiNote
 * @date 2023/6/17 0:49
 */
public interface IPaperService {
    Response<Void>add(Paper paper);

    Response<Void>delete(long id);

    Response<Void>update(Paper paper);

    Response<Paper>selectById(Long id);

    Response<IPage<Paper>>selectByUserId(Integer pageNum, Integer pageSize);

    Response<IPage<Paper>>selectPage(Integer pageNum, Integer pageSize);

    Response<Paper>judge(Paper paper);

    Response<IPage<Paper>>selectUserPaperRecords(Integer pageNum, Integer pageSize);

    Response<Paper>selectUserRecord(Long paperId);

    Response<Void>publish(Long paperId, Long classId);

    Response deleteProblemInPaper(Long problemId);

    Response addProblem2Paper(Long problemId, Long paperId);
}
